/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package modele;

import java.util.Collection;
import java.util.TreeSet;

/**
 *
 * @author gcanu
 */
public class Departement implements Comparable <Departement> {
    
    private String num;
    private Collection <Medecin> lesMeds = new TreeSet <Medecin> ();

    public Departement(String num, Collection <Medecin> lesMeds) {
        this.num = num;
        this.lesMeds = lesMeds;
    }
    
    public String getNum() {
        return num;
    }

    public Collection<Medecin> getLesMeds() {
        return lesMeds;
    }
    
    public int compareTo(Departement d) {
        return num.compareTo(d.num);
    }
    
}
